package Info;

public enum SystemEnum {
    SUCCESS(0,"操作成功"),
    ERROR_MATCH(1,"匹配失败"),
    ERROR_PRIVILEGE(2,"无权限"),
    ERROR_INPUT(3,"非法输入"),
    ERROR_REPEAT(4,"数据重复"),
    ERRPR_PAY(5,"支付失败"),
    ERROR_INEFFECTIVE(6,"操作失败");

    private int code;
    private String msg;

    SystemEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    @Override
    public String toString() {
        return "Info.SystemEnum{" +
                "code=" + code +
                ", msg='" + msg + '\'' +
                '}';
    }
}
